package com.itlaobing.dao;

import java.sql.SQLException;

import com.itlaobing.dbhelper.Dbhelper;

public class UserDao {
	public int save(String username,String password) throws ClassNotFoundException, SQLException {
		//创建Dbhelper对象
		Dbhelper db = new Dbhelper();
		//拼写sql语句
		String sql = "insert into practice values(?,?);";
		return db.executeUpdate(sql, username,password);
	}
}
